package numbers;

import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 16.06.14
 * Time: 20:30
 * To change this template use File | Settings | File Templates.
 */
public class PrimeNumbers {
 public static boolean isPrime(int num){
     if (num < 2) return false;
     for (int i = 2; i*i <= num; i++)
         if (num % i == 0) return false;
     return true;



 }
    @Test
    public void info(){
        Assert.assertTrue(isPrime(773));
    }

}
